﻿





namespace UFIDA.U9.Cust.U9Demo.DeliveryBP
{
	using System;
	using System.Collections.Generic;
	using System.Text;
	using System.Reflection;
	using UFSoft.UBF.AopFrame; 	

	/// <summary>
	/// 单据状态改变 business operation
	/// 
	/// </summary>
	[Serializable]	
	public partial class StatusUpdate
	{
	    #region Fields
		private System.Int64 iD;
		private UFIDA.U9.Cust.U9Demo.DeliverBE.Delivery.EntityKey doc;
		private System.Int64 version;
		private System.Int32 type;
		
	    #endregion
		
	    #region constructor
		public StatusUpdate()
		{}
		
	    #endregion

	    #region member		
		/// <summary>
		/// 送货单ID	
		/// 单据状态改变.Misc.送货单ID
		/// </summary>
		/// <value></value>
		public System.Int64 ID
		{
			get
			{
				return this.iD;
			}
			set
			{
				iD = value;
			}
		}
		/// <summary>
		/// 送货单	
		/// 单据状态改变.Misc.送货单
		/// </summary>
		/// <value></value>
		public UFIDA.U9.Cust.U9Demo.DeliverBE.Delivery.EntityKey Doc
		{
			get
			{
				return this.doc;
			}
			set
			{
				doc = value;
			}
		}
		/// <summary>
		/// 版本号	
		/// 单据状态改变.Misc.版本号
		/// </summary>
		/// <value></value>
		public System.Int64 Version
		{
			get
			{
				return this.version;
			}
			set
			{
				version = value;
			}
		}
		/// <summary>
		/// 类型区分	
		/// 单据状态改变.Misc.类型区分
		/// </summary>
		/// <value></value>
		public System.Int32 Type
		{
			get
			{
				return this.type;
			}
			set
			{
				type = value;
			}
		}
	    #endregion
		
	    #region do method 
		[Transaction(UFSoft.UBF.Transactions.TransactionOption.Supported)]
		[Logger]
		[Authorize]
		public System.Boolean Do()
		{	
		    BaseStrategy selector = Select();	
				System.Boolean result =  (System.Boolean)selector.Execute(this);	
		    
			return result ; 
		}			
	    #endregion 					
	} 		
}
